
// ==================================================
// 	封装类信息
// 	20180803
//	刘剑
//	563084506@qq.com
// ==================================================
 
module.exports = function (data) {

	Object.keys(data).map(name=>data[name])
	.forEach(table=>{
		table.className = under2Pascl(table.fields[0].TABLE_NAME);
		table.camel = under2Camel(table.fields[0].TABLE_NAME);
		table.pri=table.fields.filter(field=>field.COLUMN_KEY=='PRI');
		table.uni=table.fields.filter(field=>field.COLUMN_KEY=='UNI');

	});

	
	return data;
}